vm_event: Implement ARM SMC events
authorTamas K Lengyel <tamas.lengyel@zentific.com>
Thu, 29 Sep 2016 00:55:47 +0000 (18:55 -0600)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 29 Sep 2016 18:19:20 +0000 (11:19 -0700)
commiteabe1c39d1cd4fcef18ec50571db3c70c055c1fb
tree45dee986621746ea525724eb6e8b9dc4ebebe080
parentfb8be95ca0b5fc816fd2234925f95c3f82ead824
vm_event: Implement ARM SMC events

The ARM SMC instructions are already configured to trap to Xen by default. In
this patch we allow a user-space process in a privileged domain to receive
notification of when such event happens through the vm_event subsystem by
introducing the PRIVILEGED_CALL type.

The intended use-case for this feature is for a monitor application to be able
insert tap-points into the domU kernel-code. For this task only unconditional
SMC instruction should be used.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
tools/libxc/include/xenctrl.h
tools/libxc/xc_monitor.c
tools/tests/xen-access/xen-access.c
xen/arch/arm/Makefile
xen/arch/arm/monitor.c [new file with mode: 0644]
xen/arch/arm/traps.c
xen/include/asm-arm/domain.h
xen/include/asm-arm/monitor.h
xen/include/public/domctl.h
xen/include/public/vm_event.h